<?php
require_once 'modules/content/models/Content.php';
require_once 'modules/content/models/ContentCategory.php';
require_once 'modules/language/models/Lang.php';
class front_hopdongSticker extends Nine_Sticker
{
	public function run()
	{
		$objContent = new Models_Content();
        $objLang    = new Models_Lang();
        $objCat     = new Models_ContentCategory();
        
        $allContent = $objCat->setAllLanguages(true)->getCategoryWithParentId(27);
        
        foreach ($allContent as &$item){
        	$item['url'] = Nine_Route::_("content/index/hopdong/id/".$item['content_category_gid'],array('alias' => $item['alias']));
        }
        unset($item);
		$this->view->allMenu = $allContent;
	}
}